package com.netstar.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.netstar.R;
import com.netstar.ui.BaseActivity;
import com.netstar.util.EvtLog;

/***
 * 申请免费流量
 * 
 * @author taona
 * 
 */
public class ApplyFreeActivity extends BaseActivity implements OnClickListener {

	private static final String TAG = "NetStarActivity";

	private EditText mEtPhone;
	private ImageView mIvApplyFlow;
	private Button mBtnBack;
	private RelativeLayout mRlTitle;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		EvtLog.d(TAG, "onCreate");
		setContentView(R.layout.applyfreeflow);

		initView();
		mIvApplyFlow.setOnClickListener(this);
		mBtnBack.setOnClickListener(this);
	}

	/**
	 * 初始化控件
	 */
	public void initView() {
		mEtPhone = (EditText) findViewById(R.id.et_phone);
		mIvApplyFlow = (ImageView) findViewById(R.id.apply_flow);
		mBtnBack = (Button) findViewById(R.id.btn_title_left);
		mRlTitle = (RelativeLayout) findViewById(R.id.top_bar_title);
		mRlTitle.setBackgroundResource(R.drawable.bg_title02);
		mBtnBack.setVisibility(View.VISIBLE);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.apply_flow:
				toast("该功能持续更新中...");
				// Intent overintent = new Intent(ApplyFreeActivity.this,
				// ApplyOverActivity.class);
				// startActivity(overintent);
				break;
			case R.id.btn_title_left:
				finish();
				break;
		}
	}
}
